
<%@page import="java.util.LinkedList"%>
<%@page import="de.hsmannheim.pepa.patientenportal.apanwep.model.chronik"%>
<%@page import="java.util.List"%>
<%@page import="de.hsmannheim.pepa.patientenportal.apanwep.logic.Tables"%>

<%
	
LinkedList<chronik> myChroniks = (LinkedList<chronik>)request.getAttribute("dataChronik");
	
	String action = "";
	String messageId = "";
	String eventDateTimeAt = "";
	String eventDateTimeDown = "";
	String participantsObjectName = "";
	String eventAction = "";
	String username = "";

%>
<table id="chronikTable"  >
	<% for(int i = 0; i < myChroniks.size() ; i++){ 
			username = myChroniks.get(i).getParticipant();
			participantsObjectName = myChroniks.get(i).getObject();
			messageId = myChroniks.get(i).getMessage();
			eventAction = myChroniks.get(i).getEvent_action();
			eventDateTimeAt = myChroniks.get(i).getEvent_date_time_at();
			eventDateTimeDown = myChroniks.get(i).getEvent_date_time_down();
			%>	
			<tr align="center" title="Double click o fill the form" ondblclick="reloadChronik('<%=username %>','<%=messageId %>','<%=eventAction %>','<%=eventDateTimeAt %>','<%=eventDateTimeDown %>','<%=participantsObjectName %>')">
				<td ><%=myChroniks.get(i).getDatetime() %></td>
				<td><img onclick="del('<%=myChroniks.get(i).getChronik_id() %>')" title="delete the history" id="delete" class="icons" src="<%= request.getContextPath()%>/html/image/l_cancel.gif" /></td>
			</tr>
	<% 
		} 
	%>

</table>